package com.yjy.test06_comparator.test2;

import java.util.Comparator;

public class UserComparator implements Comparator<User> {

	@Override
	public int compare(User o1, User o2) {
		if (o1.getBirthday().after(o2.getBirthday())) {
			return 1;
		}
		return -1;
	}

}
